package org.dromara.wms.domain;

import org.dromara.common.tenant.core.TenantEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;

import java.io.Serial;

/**
 * 仓库管理对象 wms_warehouse
 *
 * @author wenrui
 * @date 2024-03-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("wms_warehouse")
public class WmsWarehouse extends TenantEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 仓库ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 库位上级
     */
    private String parentId;

    /**
     * 仓库祖籍
     */
    private String ancestors;

    /**
     * 仓库名称
     */
    private String name;

    /**
     * 位置
     */
    private String location;

    /**
     * 面积
     */
    private Double acreage;

    /**
     * 负责人
     */
    private Long userId;

    /**
     * 状态
     */
    private String status;

    /**
     * 归属部门
     */
    private Long createDept;

    /**
     * 备注
     */
    private String remark;


    /**
     * 负责人昵称
     */
    @TableField(exist = false)
    private String userName;

    /**
     * 归属部门
     */
    @TableField(exist = false)
    private String deptName;

}
